Restrict
annotation class Restrict(val min: Short = Short.MIN_VALUE, val max: Short = Short.MAX_VALUE, val type: ValidatedNumber.WidgetType = WidgetType.SLIDER)
Annotation-driven validation for Shorts
Author
fzzyhmstrs
Since
0.2.0, added widget type 0.6.3
Parameters
min
: Short - minimum allowable value, default to Short.MIN_VALUE
max
: Short - maximum allowable value, default to Short.MAX_VALUE
type
: ValidatedNumber.WidgetType - The "style" of the GUI widget for the annotated setting